package com.rein.spring.ioc._03_scan.config;

import com.rein.spring.ioc.model.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("com.rein.spring.ioc._03_scan")
public class ScanConfig {
    @Bean
    public Person person() {
        return new Person("周盛林", 28, "包扫描，包含与排除");
    }
}
